import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import QtQuick.Window 2.2

SystemWindow {
    id:interNetWindow
    width: Screen.desktopAvailableWidth
    height: Screen.desktopAvailableHeight
    color: "blue"
    title: qsTr("touch")

    //focus: true // 设置焦点

    MouseArea {
        anchors.fill: parent
        onClicked: {
            console.log("x:",mouseX)
            console.log("y:",mouseY)
        }
    }

    // 处理触摸事件
    MultiPointTouchArea {
        anchors.fill: parent
        onTouchUpdated: {
                console.log("Touch point count: " + touchPoints.length)
        }
    }

    MultiPointTouchArea {
        anchors.fill: parent
        onTouchUpdated: {
            console.log("Touch point count1: " + touchPoints.length)
            console.log("x:",x)
            console.log("y:",y)
        }
    }



//   TouchPoint {
//       anchors.fill: parent
//       MultiPointTouchArea:true
//       onTouchUpdated: {
//           console.log("Touch point count2: " + touchPoints.length)
//       }
//   }

}
